<%--
  Created by IntelliJ IDEA.
  User: yeziwang
  Date: 2021/7/24
  Time: 8:58 AM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>EasyWeb后台管理模板</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/libs/layui/css/layui.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/assets/module/admin.css?v=318"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!-- 头部 -->
    <div class="layui-header">
        <div class="layui-logo">
            <img src="${pageContext.request.contextPath}/assets/images/logo.png"/>
            <cite>&nbsp;EasyWeb iframe</cite>
        </div>
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
            </li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="message" title="消息">
                    <i class="layui-icon layui-icon-notice"></i>
                    <span class="layui-badge-dot"></span>
                </a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="note" title="便签"><i class="layui-icon layui-icon-note"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
            </li>
            <li class="layui-nav-item layui-hide-xs" lay-unselect>
                <a ew-event="lockScreen" title="锁屏"><i class="layui-icon layui-icon-password"></i></a>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a>
                    <img src="${pageContext.request.contextPath}/assets/images/head.jpg" class="layui-nav-img">
                    <cite>${manager.userName}</cite>
                </a>
                <dl class="layui-nav-child">
                    <dd lay-unselect><a ew-href="${pageContext.request.contextPath}/page/template/user-info.html">个人中心</a></dd>
                    <dd lay-unselect><a ew-event="psw">修改密码</a></dd>
                    <hr>
                    <dd lay-unselect><a ew-event="logout" data-url="${pageContext.request.contextPath}/login/quit">退出</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item" lay-unselect>
                <a ew-event="theme" title="主题"><i class="layui-icon layui-icon-more-vertical"></i></a>
            </li>
        </ul>
    </div>

    <!-- 侧边栏 -->
    <div class="layui-side">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree arrow2" lay-filter="admin-side-nav" lay-shrink="_all">
                <c:forEach var="auth" items="${authorityList}">
                    <c:if test="${auth.parentId==-1}">
                        <li class="layui-nav-item">
                            <a><i class="layui-icon ${auth.menuIcon}"></i>&emsp;<cite>${auth.authorityName}</cite></a>
                            <dl class="layui-nav-child">
                                <c:forEach var="auth2" items="${authorityList}">
                                    <c:if test="${auth2.parentId==auth.authorityId}">
                                        <dd><a lay-href="${pageContext.request.contextPath}/${auth2.menuUrl}"><i class="layui-icon ${auth2.menuIcon}"></i> ${auth2.authorityName}</a></dd>
                                    </c:if>
                                </c:forEach>
                            </dl>
                        </li>
                    </c:if>

                </c:forEach>

<%--                <li class="layui-nav-item">--%>
<%--                    <a><i class="layui-icon layui-icon-set"></i>&emsp;<cite>系统管理</cite></a>--%>
<%--                    <dl class="layui-nav-child">--%>
<%--                        <dd><a lay-href="${pageContext.request.contextPath}/page/system/manager.html">用户管理</a></dd>--%>
<%--                        <dd><a lay-href="${pageContext.request.contextPath}/page/system/user.html">学生管理</a></dd>--%>
<%--                        <dd><a lay-href="${pageContext.request.contextPath}/page/system/role.html">角色管理</a></dd>--%>
<%--                        <dd><a lay-href="${pageContext.request.contextPath}/page/system/authorities.html">权限管理</a></dd>--%>
<%--                    </dl>--%>
<%--                </li>--%>
            </ul>
        </div>
    </div>

    <!-- 主体部分 -->
    <div class="layui-body"></div>
    <!-- 底部 -->
    <div class="layui-footer layui-text">
        copyright © 2020 <a href="http://easyweb.vip" target="_blank">easyweb.vip</a> all rights reserved.
        <span class="pull-right">Version 3.1.8</span>
    </div>
</div>

<!-- 加载动画 -->
<div class="page-loading">
    <div class="ball-loader">
        <span></span><span></span><span></span><span></span>
    </div>
</div>

<!-- js部分 -->
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/libs/layui/layui.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/assets/js/common.js?v=318"></script>
<script>
    layui.use(['index'], function () {
        var $ = layui.jquery;
        var index = layui.index;

        // 默认加载主页
        index.loadHome({
            menuPath: '${pageContext.request.contextPath}/page/console/workplace.html',
            menuName: '<i class="layui-icon layui-icon-home"></i>'
        });

    });
</script>
</body>
</html>